﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Model
{
    /// <summary>
    /// 聊天信息
    /// </summary>
    public class Chat
    {
        Characters character;
        string message;
        ChatChanel chanel;
        string color;

        /// <summary>
        /// 发送的频道
        /// </summary>
        public ChatChanel Chanel
        {
            get { return chanel; }
            set { chanel = value; }
        }

        /// <summary>
        /// 发送聊天信息的角色
        /// </summary>
        public Characters Character
        {
            get { return character; }
            set { character = value; }
        }

        /// <summary>
        /// 红绿蓝web颜色信息：336699
        /// </summary>
        public string Color
        {
            get { return color; }
            set { color = value; }
        }

        /// <summary>
        /// 发送的聊天信息
        /// </summary>
        public string Message
        {
            get { return message; }
            set { message = value; }
        }

        /// <summary>
        /// 私聊信息
        /// </summary>
        public class IndividualChat : Chat
        {
            Characters targeCharacter;

            /// <summary>
            /// 私聊的目的角色
            /// </summary>
            public Characters TargeCharacter
            {
                get { return targeCharacter; }
                set { targeCharacter = value; }
            }

        }
    }

    /// <summary>
    /// 聊天频道
    /// </summary>
    public enum ChatChanel
    {
        /// <summary>
        /// 世界
        /// </summary>
        World,
        /// <summary>
        /// 宗祠
        /// </summary>
         AncestralHall,
        /// <summary>
        /// 阵营
        /// </summary>
        Group,
        /// <summary>
        /// 私聊
        /// </summary>
        Individual 
    }
}
